package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * geography对象 the_geography
 * 
 * @author ruoyi
 * @date 2023-04-17
 */
public class TheGeography extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime dateTime;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal latitude;

    /** 维度 */
    @Excel(name = "维度")
    private BigDecimal longitude;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 地址 */
    @Excel(name = "地址")
    private BigDecimal depth;

    /** 位置 */
    @Excel(name = "位置")
    private BigDecimal magnitude;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDateTime(LocalDateTime dateTime)
    {
        this.dateTime = dateTime;
    }

    public LocalDateTime getDateTime()
    {
        return dateTime;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDepth(BigDecimal depth) 
    {
        this.depth = depth;
    }

    public BigDecimal getDepth() 
    {
        return depth;
    }
    public void setMagnitude(BigDecimal magnitude) 
    {
        this.magnitude = magnitude;
    }

    public BigDecimal getMagnitude() 
    {
        return magnitude;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dateTime", getDateTime())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("type", getType())
            .append("depth", getDepth())
            .append("magnitude", getMagnitude())
            .append("city", getCity())
            .toString();
    }
}
